ARM: GIC: export and extend vgic_init_pending_irq()
authorAndre Przywara <andre.przywara@arm.com>
Fri, 7 Apr 2017 10:23:53 +0000 (11:23 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 14 Jun 2017 18:38:37 +0000 (11:38 -0700)
commit97b9b3250904992e053fc930ab16277f354b1e42
treeedbc612340c2fc5e71e1a81df59f9d401ff7bb49
parent71c23f4d9f550521a34e945bd97a386ee1c0a1ce
ARM: GIC: export and extend vgic_init_pending_irq()

For LPIs we later want to dynamically allocate struct pending_irqs.
So beside needing to initialize the struct from there we also need
to clean it up and re-initialize it later on.
Export vgic_init_pending_irq() and extend it to be reusable.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/vgic.c
xen/include/asm-arm/vgic.h